function pictureInfoCheck()
{
	var name = document.getElementById("name");
	var pictureTags = document.getElementById("pictureTags");
	var description = document.getElementById("description");
	var nameWarning = document.getElementById("nameWarning");
	var descriptionWarning = document.getElementById("descriptionWarning");
	var pictureTagsWarning = document.getElementById("pictureTagsWarning");
	var reIsEmpty=/^\s{0,}$/;
	var reSQL= /select|update|delete|exec|count|'|"|=|;|>|<|%/i;
	
	if(reIsEmpty.test(name.value))
	{
		nameWarning.innerHTML = "请输入图片名";
		return false;
	}
	
	if(reSQL.test(name.value))
	{
		nameWarning.innerHTML = "请不要输入SQL关键字";
		return false;
	}
	
	if(reSQL.test(description.value))
	{
		descriptionWarning.innerHTML = "请不要输入SQL关键字";
		return false;
	}
	
	if(reSQL.test(pictureTags.value))
	{
		picutreTagsWarning.innerHTML = "请不要输入SQl关键字";
		return false;
	}
	
	return true;
}

function clearWarning(spanId)
{
	var warningSpan = document.getElementById(spanId);
	warningSpan.innerHTML="";
}